package com.ruiysoft.crm.mapper;

import com.ruiysoft.crm.dto.LoginUser;
import com.ruiysoft.crm.dto.MenuItem;
import com.ruiysoft.crm.dto.SysUserEx;
import com.ruiysoft.crm.entity.SysPower;
import com.ruiysoft.crm.entity.SysUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yanghu
 * @since 2018-08-03
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    List<SysPower> loginAndGetMenuList(@Param("loginUser") LoginUser arg0);

    List<MenuItem> selectMenuListByRoleId(@Param("roleId") Integer arg0, @Param("parentCode") String arg1);

    List<SysUserEx> selectAllLeftJoinXXX();
}
